home *** CD-ROM | disk | FTP | other *** search
- !---------------------------------------------------------------------!
- ! !
- ! Copyright (c) 1991 !
- ! by CompuServe Incorporated, Columbus, Ohio !
- ! !
- ! The information in this software is subject to change without !
- ! notice and should not be construed as a commitment by CompuServe. !
- ! !
- ! DATEX Script: !
- ! Connect to Datex-P using a NUI !
- ! Insert NUI - Part A in line 42 !
- ! Insert NUI - Part B in line 49 !
- ! Success: returns %Success !
- ! Failure: saves error msg in %FailureMsg and returns %Failure !
- ! !
- ! $Revision:: 1.0 $ !
- ! !
- !---------------------------------------------------------------------!
-
- Tries = 5;
- on cancel goto Return_Cancel;
-
- Wait_Datex:
-
- if Tries = 0 goto Datex_Failure;
- Tries = Tries - 1;
-
- show "Connecting to Datex-P";
- wait until 15;
- send ".";
-
- wait until 15;
- send %CR;
-
- wait
- "DATEX-P:" goto Send_NUI
- until 30;
-
- goto Wait_Datex;
-
- Send_NUI:
-
- wait until 30;
- show "Sending NUI - Part A";
- send "NUI DXXXXXXX" & %CR; ! Insert your NUI - !
- ! part A here !
- wait until 15;
-
- Send_NUI_B:
-
- show "Sending NUI - Part B";
- send "XXXXXX" & %CR; ! Insert your NUI - !
- ! part B here !
- wait
- "aktiv" goto Send_Datex_Host,
- "Fehler" goto NUI_Failure
- until 30;
-
- Send_Datex_Host:
-
- show "Calling CompuServe";
- wait until 15;
- send "4569002330" & %CR;
-
- wait
- "User ID:" goto Return_Success,
- "Host Name:" goto Return_Success
- until 90;
-
- goto Wait_Datex;
-
- NUI_Failure:
- define %FailureMsg = "NUI not accepted";
- exit %Failure;
-
- Datex_Failure:
- define %FailureMsg = "Datex-P not responding";
- exit %Failure;
-
- Return_Cancel:
- exit %Cancel;
-
- Return_Success:
- exit %Success;
-